<template>
	<view class="page-content">
		<view class="page-title">安装步骤</view><ui-br />
		<view class="page-tips">npm运行</view><ui-br />
		<ui-code :code="code0"></ui-code><ui-br />
		<view class="page-tips">在main.js引入</view><ui-br />
		<ui-code :code="code1"></ui-code><ui-br />
		<view class="page-tips">在app.vue中引入</view><ui-br />
		<ui-code :code="code2"></ui-code><br />
		<view class="page-tips">在uni.scss中引入</view><ui-br />
		<ui-code :code="code3"></ui-code><ui-br />
		<view class="page-tips">在page.json中配置</view><ui-br />
		<ui-code :code="code4"></ui-code><ui-br />
	</view>
</template>

<script>
	import {
		code0,
		code1,
		code2,
		code3,
		code4
	} from './code.js'
	export default {
		data() {
			return {
				code0: "",
				code1: "",
				code2: "",
				code3: "",
				code4: ""
			}
		},
		created() {
			this.code0 = code0
			this.code1 = code1
			this.code2 = code2
			this.code3 = code3
			this.code4 = code4
		},
		methods: {
			toPage(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>